package com.fyzk.betzhushu.nxk3;

import java.util.List;

import com.fyzk.activity.lottery.shuzicai.BallInfo;
import com.fyzk.betzhushu.ZhuShuBase;

public class Nxk3ErBuTongDan extends ZhuShuBase{

	@Override
	public long betZhuShu(List<List<BallInfo>> balls) {
		int countDan = 0;
		int countTuo = 0;
		List<BallInfo> infosDan = balls.get(9);
		List<BallInfo> infosTuo = balls.get(10);
		
		for (int i = 0; i < infosDan.size(); i++) {
			if (infosDan.get(i).isSelected()) {
				countDan++;	
			}
		}
		
		for (int i = 0; i < infosTuo.size(); i++) {
			if (infosTuo.get(i).isSelected()) {
				countTuo++;	
			}
		}
		
		if (countDan == 0) {
			return 0;
		}
		return countTuo;
	}
	
}
